<ion-view view-title="品牌管理" class="productmanager_brand">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
	</ion-nav-bar>
	
	<!--描述：滑动块-->
	<!--<ion-content scroll="false" class="bg has-header" ng-class="{'has-footer':isShowAddBtn}">-->
	<ion-content class="has-header bg" ng-class="{'has-footer':isShowAddBtn}">
		<!--<ion-scroll direction="y" ng-style="" lazy-scroll>-->
			<!--描述：下拉刷新-->
			<ion-refresher pulling-text="下拉刷新..." on-refresh="doRefresh()"></ion-refresher>
			<div class="font-large-my font-gray-my text-center padding" ng-if="brands.length==0||brands==null">
				<i class="icon ion-sad-outline font-1rem-my"></i> 对不起，您还没有的品牌.....
			</div>
			
			<div class="list">
				<div ng-repeat="brand in brands">
					<li class="item brandItem" on-tap="onshow_detail(brand.id)">
						<img src="{{brand.logo||noImg}}" />
						<div class="name">
							{{brand.name}}
							<span class="status" style="color: {{brand.status_color}};">{{brand.status}}</span>
							<p class="from">{{brand.brand_from}}</p>
						</div>
					</li>
					<li class="item buttonItem">
						<!--<div class="btn gray" on-tap="delete_brand(brand.id)" ng-if="user_type==1">删除</div>-->
						<div class="btn" style="border-color:{{buttons.color}};color:{{buttons.color}};" ng-repeat="buttons in brand.buttons" on-tap="switchEvent(buttons.id,brand.id,buttons.error,buttons.confirm)">{{buttons.name}}</div>
					</li>
				</div>
			</div>
			
			<!--描述：当用户到达页脚或页脚附近时-->
			<ion-infinite-scroll ng-if="!isLoad" immediate-check="false" on-infinite="doRefreshMore()" distance="1%"></ion-infinite-scroll>
		<!--</ion-scroll>-->
	</ion-content>
	
	<div class="bar bar-footer" ng-if="isShowAddBtn" >
		<div class="addBtn" on-tap="onshow_productmanager_brand_edit()">添加品牌</div>
	</div>
	
</ion-view>